package com.serviceprovider.business.module.order.model;

//~--- JDK imports ------------------------------------------------------------

import java.util.ArrayList;
import java.util.List;

public enum ConditionType {
    IS("is"), IS_NOT("is not");

    private String title;

    ConditionType(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public static List<EnumTitlePair> getTitles() {
        ConditionType[]     mas    = values();
        List<EnumTitlePair> result = new ArrayList<EnumTitlePair>();

        for (ConditionType item : mas) {
            result.add(new EnumTitlePair(item.toString(), item.getTitle()));
        }

        return result;
    }
}



